package com.lingyuan.discounts.remote;


import com.lingyuan.common.core.domain.R;
import com.lingyuan.common.core.domain.vo.oms.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Li Hao Xuan
 * @name: OrderRemoteService
 * @Description TODO
 */
@FeignClient("lingyuan-oms")
public interface OrderRemoteService {

    /**
     * 根据订单id查询订单信息
     * @param orderId
     * @return
     */
    @GetMapping("/order/findByOrderId/{orderId}")
    public R<OrderVo> findByOrderId(@PathVariable("orderId") Long orderId);
}
